﻿using System;
using System.Web.UI;

namespace HeThongSpa.Site
{
    public partial class TopMenu : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;
            if (Session["username"] == null)
                Response.RedirectToRoute("DangNhap");
        }

        protected void btnThongTinCaNhan_OnClick(object sender, EventArgs e)
        {
            Response.RedirectToRoute("ThongTinCaNhan");
        }

        protected void btnDoiMatKhau_OnClick(object sender, EventArgs e)
        {
            Response.RedirectToRoute("DoiMatKhau");
        }

        protected void btnDangXuat_OnClick(object sender, EventArgs e)
        {
            Session.Abandon();
            Response.RedirectToRoute("DangNhap");
        }
    }
}